package com.ruoyi.framework.sso.domain;

/**
 * SSO 登录结果封装
 */
public class UserCenterLoginResult
{
    /**
     * 本地系统 JWT
     */
    private final String localToken;

    /**
     * 用户中心 token 数据
     */
    private final UserCenterTokenResponse tokenResponse;

    /**
     * 用户中心用户信息
     */
    private final UserCenterUserInfo userInfo;

    public UserCenterLoginResult(String localToken, UserCenterTokenResponse tokenResponse, UserCenterUserInfo userInfo)
    {
        this.localToken = localToken;
        this.tokenResponse = tokenResponse;
        this.userInfo = userInfo;
    }

    public String getLocalToken()
    {
        return localToken;
    }

    public UserCenterTokenResponse getTokenResponse()
    {
        return tokenResponse;
    }

    public UserCenterUserInfo getUserInfo()
    {
        return userInfo;
    }
}
